﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using FwProject.Core.Distribution;
using FwProject.Restaurant.Dto;
using FwProject.TypeNumber.Dto;

namespace FwProject.Distribution.Dto
{
    public class DistributionDetailsListDto
    {
        public Guid Id { get; set; }
        /// <summary>
        /// 餐厅编号
        /// </summary>
        /// <value>The restaurantid.</value>
        [Display(Name = "餐厅编号")]
        public Guid Restaurantid { get; set; }

        public Guid TypeNumberInfoId { get; set; }

        public string TypeNumberName { get; set; }
        /// <summary>
        /// 型号单价
        /// </summary>
        public decimal Price { get; set; }
        /// <summary>
        /// 型号数量
        /// </summary>
        public int Count { get; set; }

        /// <summary>
        /// 本次配送套数
        /// </summary>
        /// <value>The distributioncount.</value>
        [Display(Name = "配送箱数")]
        public int Distributioncount { get; set; } = 0;
        [Display(Name = "配送套数")]
        public int DistributionBycount { get; set; } = 0;
        /// <summary>
        /// 回收
        /// </summary>
        /// <value>The recoverycount.</value>
        [Display(Name = "回收箱数")]
        public int Recoverycount { get; set; } = 0;

        [Display(Name = "回收套数")]
        public int RecoveryBycount { get; set; } = 0;
        /// <summary>
        /// 换货
        /// </summary>
        /// <value>The exchangegoodscount.</value>
        [Display(Name = "换货箱数")]
        public int Exchangegoodscount { get; set; } = 0;
        [Display(Name = "换货套数")]
        public int ExchangegoodsBycount { get; set; } = 0;
        /// <summary>
        /// 折损
        /// </summary>
        /// <value>The damagecount.</value>
        [Display(Name = "折损套数")]
        public int Damagecount { get; set; } = 0;
        /// <summary>
        /// 赠送
        /// </summary>
        /// <value>The givecount.</value>
        [Display(Name = "赠送箱数")]
        public int Givecount { get; set; } = 0;
        [Display(Name = "赠送套数")]
        public int GiveBycount { get; set; } = 0;
        /// <summary>
        /// 退箱
        /// </summary>
        /// <value>The backboxcount.</value>
        [Display(Name = "退回箱数")]
        public int Backboxcount { get; set; } = 0;
        /// <summary>
        /// 退数
        /// </summary>
        /// <value>The backnumbercount.</value>
        [Display(Name = "退回套数")]
        public int Backnumbercount { get; set; } = 0;


        [Display(Name = "配送编号")]
        public Guid DistributionInfoId { get; set; }

        //public  DistributionInfo DistributionInfoModel { get; set; }

        /// <summary>
        /// 支付状态
        /// </summary>
        /// <value>The pricestatus.</value>
        [Display(Name = "支付状态")]
        public Pricestatus Pricestatus { get; set; } = Pricestatus.未结账;
        /// <summary>
        /// 应支付金额
        /// </summary>
        /// <value>The price.</value>
        [Display(Name = "应支付金额")]
        public decimal Sumprice { get; set; } = 0;


        /// <summary>
        /// 结账编码
        /// </summary>
        /// <value>The prices identifier.</value>
        //[Display(Name = "结账编码")]
        //public Guid PricesId { get; set; }

        //public long? CreatorUserId { get; set; }
        //public DateTime CreationTime { get; set; }
    }
}
